package com.six.controller;

import com.six.domain.User;
import com.six.service.LoginService;
import com.six.util.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 测试
 * @author: hui.zhang
 * @date: 2021/02/05 2:34 下午
 **/

// controller层 负责具体的业务模块流程的控制  controller层的注解为 @RestController
@RestController
@Api(tags = "测试")
@RequestMapping("/mall")
public class LoginController {

//    注入service层
   @Autowired
    private LoginService loginService;
//    注册帐号
   @PostMapping("/register")
    public Result register(@RequestBody Map<String,String> user){

   }
   }
//   登录帐号
    @PostMapping("/login")
    public Result login(@RequestBody Map<String,String> user) {

}
